/**
 * 
 */
package jvs.peer.io;

/**
 * @author qiangli
 *
 */
public class Message {
	private Header header;
	
	private int seqno;
	private int ioscmd = 0; 
	
	private byte[] data;
	private int size;
	
	public Message() {	
	}
	
	public Header getHeader() {
		return header;
	}

	public void setHeader(Header header) {
		this.header = header;
	}

	public int getIoscmd() {
		return ioscmd;
	}

	public void setIoscmd(int ioscmd) {
		this.ioscmd = ioscmd;
	}
	
	public int getSeqno() {
		return seqno;
	}

	public void setSeqno(int seqno) {
		this.seqno = seqno;
	}

	public byte[] getData() {
		return data;
	}

	public void setData(byte[] data) {
		this.data = data;
	}

	public int getSize() {
		return size;
	}

	public void setSize(int size) {
		this.size = size;
	}

	@Override
	public String toString() {
		return "Message [header=" + header + ", seqno=" + seqno + ", ioscmd="
				+ ioscmd + ", data=" + data + ", size: " + size + "]";
	}
}
